package com.khyr.feign;


import com.khyr.entity.HisPatient;
import com.khyr.entity.User;
import com.khyr.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "services-system", fallbackFactory = UserFallbackFactory.class)
public interface UserFeign {
    @GetMapping("/system/user/getUserInfo/{token}")
    public R<User> getUserInfo(@PathVariable String token);
    @GetMapping("/system/user/getPatientInfo/{token}")
    public R<HisPatient> getPatientInfo(@PathVariable  String token);
}
